﻿@{
    ViewBag.Title = "ResetPassword";    
}

<h2>Reset Password</h2>
@if (ViewBag.Succeed != null)
{
    var isSucceeded = Convert.ToBoolean(ViewBag.Succeed);

    if (isSucceeded)
    {
        <p>Your new password has been sent to the provided email. Remember to change it after logging in.</p>
    }
    else
    {
         <p>Somethign went wrong with the information, please try again.</p>
    }
}
else
{
    using (Html.BeginForm("ResetPassword", "User", FormMethod.Post))
    {
    <p>Give us the provided email address of your registered account, we will send you your new login information</p>
    @Html.TextBox("email")

    <input type="submit" value="Send" />
    }
}
